package com.zdpx.pxframework.system.api.api;

import com.zdpx.pxframework.core.constant.ServiceNameConstant;
import com.zdpx.pxframework.core.vo.Result;
import com.zdpx.pxframework.system.api.entity.OperateLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 远程调用系统管理的操作日志
 *
 * @Description:
 * @Author: Cheng XiaoXiao
 * @Date: 2022/5/24 10:14
 */
@FeignClient(value = ServiceNameConstant.SYSTEM_SERVICE, url = "${px.open-feign.system-url}")
public interface RemoteOperateLogService {
    /**
     * 添加操作日志信息
     *
     * @param operateLog 操作日志实体
     * @return 添加结果
     */
    @PostMapping("/operate-log")
    Result<OperateLog> add(@RequestBody OperateLog operateLog);
}
